<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    * {
      padding: 0;
      margin: 0;
    }
    .box {
      width: 500px;
      height: 300px;
      margin: 100px 500px;
      position: relative;
    }
    .box1 {
      overflow: hidden;
      width: 500px;
      height: 300px;
    }
    .box1 img {
      width: 500px;
      height: 300px;
    }
    ul {
      position: absolute;
      right: 10px;
      bottom: 10px;
    }
    li {
      float: left;
      margin: 10px;
      list-style: none;
      width: 30px;
      height: 30px;
      background-color: rgba(220, 250, 220, .5);
      text-align: center;
      line-height: 30px;
    }
    li:hover {
      background-color: turquoise;
    }
    li a {
      color: white;
      text-decoration: none;
    }
  </style>
</head>
<body>
  <div class="box">
    <div class="box1">
      <a><img id="pic1" src="../html+css/picture/changcheng.webp" width="500" height="333" alt="长城"></a>
      <a><img id="pic2" src="../html+css/picture/zijingcheng.webp" width="535" height="300" alt="紫荆城"></a>
      <a><img id="pic3" src="../html+css/picture/tiantan.webp" width="500" height="369" alt="天坛"></a>
      <a><img id="pic4" src="../html+css/picture/beihai.webp" width="500" height="353" alt="北海公园"></a>
    </div>
    <ul>
      <li><a href="#pic1">1</a></li>
      <li><a href="#pic2">2</a></li>
      <li><a href="#pic3">3</a></li>
      <li><a href="#pic4">4</a></li>
    </ul>
  </div>
  
</body>
</html>